#include "test.h"

void test()
{
	int num = 20;
	int* a = (int*)malloc(sizeof(int) * num);
	if (a == NULL)
		return;
	srand((unsigned)time(NULL));
	for (int i = 0; i < num; i++)
	{
		a[i] = rand() % 50;
	}
	for (int i = 0; i < num; i++)
	{
		printf("%d ", a[i]);
	}
	printf("\n");
	CountSort(a, num);
	for (int i = 0; i < num; i++)
	{
		printf("%d ", a[i]);
	}
	printf("\n");
}

int main()
{
	test();
	return 0;
}